<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>

<!DOCTYPE html>

<html>

	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<meta name="autocomplete" content="off"/>
		<title>상담 등록</title>
		
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/egovframework/mbl/cmm/jquery.mobile-1.3.2.css"/>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/egovframework/mbl/cmm/EgovMobile-1.3.2.css"/>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/egovframework/mbl/com/uss/ussCommon.css"/>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/egovframework/mbl/cmm/jquery-1.9.1.js"></script>
		
		 
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/egovframework/mbl/cmm/jquery.mobile-1.3.2.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/egovframework/mbl/cmm/EgovMobile-1.3.2.js"></script>
		
		<script type="text/javascript" src="${pageContext.request.contextPath}/validator.do"></script>
		<validator:javascript formName="cnsltManageVO" staticJavascript="false" xhtml="true" cdata="false"/> 
	</head>
	
	<body>
		
		<div id="view" data-role="page">
									
			
			<div data-role="header">
			    <a href="#list" data-icon="arrow-l">뒤로</a>
			    <h1>상담등록</h1>
			</div>
			
			<form:form commandName="cnsltManageVO" id="detailForm" name="detailForm" method="post">
			<form:hidden path="cnsltId" value=""/>
			<div data-role="content" class="com-ussContent">
				
				<div data-inline="true">
					<dl class="uss-registOk">
						<dt><label for="name"><strong>작성자명</strong></label></dt>
						<dd><form:input path="wrterNm" maxlength="30"/></dd>
						
						<dt><label for="writingPassword"><strong>비밀번호</strong></label></dt>
						<dd><form:password path="writngPassword" maxlength="30"/></dd>
						
						<dt><label for="useYn"><strong>공개여부</strong></label></dt>
						<dd>
							<fieldset data-role="controlgroup" data-type="horizontal"  data-inline="true"> 				
								<form:radiobutton path="othbcAt" value="Y" label="공개"/>
								<form:radiobutton path="othbcAt" value="N" label="비공개"/> 
								<form:radiobutton path="othbcAt" value="C" label="내용공개"/>
							</fieldset>
						</dd>
						
						<dt><label for="useYn"><strong>이메일</strong></label></dt>
						<dd>
							<form:input path="emailAdres" maxlength="30"/>
						</dd>
						
						<dt><label for="useYn"><strong>이메일답변여부</strong></label></dt>
						<dd>
							<fieldset data-role="controlgroup" data-type="horizontal"  data-inline="true"> 	
								<form:radiobutton path="emailAnswerAt" value="Y" label="Yes"/>
								<form:radiobutton path="emailAnswerAt" value="N" label="No"/>
							</fieldset>
						</dd>
						
						<dt><label for="useYn"><strong>전화번호</strong></label></dt>
						<dd>
							<fieldset data-role="controlgroup" data-type="horizontal">	
								<div class="uss-phone">
									<div class="uss-wid2"><form:input path="areaNo" title="전화번호(지역)" maxlength="3"/></div>
									<div class="uss-wid3"><form:input path="middleTelno" title="전화번호(국번)" maxlength="4"/></div>
									<div class="uss-wid3"><form:input path="endTelno" title="전화번호(지번)" maxlength="4"/></div>
								</div>
						    </fieldset>
						</dd>
						
						<dt><label for="description"><strong>휴대전화번호</strong></label></dt>
						<dd>
							<fieldset  data-role="controlgroup" data-type="horizontal">
								<div class="uss-phone">
									<div class="uss-wid2"><form:input path="firstMoblphonNo" title="휴대폰전화번호(앞번)" maxlength="3"/></div>
									<div class="uss-wid3"><form:input path="middleMbtlnum"  title="휴대폰전화번호(국번)" maxlength="4"/></div>
									<div class="uss-wid3"><form:input path="endMbtlnum"  title="휴대폰전화번호(지번)" maxlength="4"/></div>
								</div>
							</fieldset>
						</dd>
						
						<dt><label for="useYn"><strong>상담제목</strong></label></dt>
						<dd><form:input path="cnsltSj" size="70" maxlength="70" title="상담제목"/></dd>
						
						<dt><label for="useYn"><strong>상담내용</strong></label></dt>
						<dd><form:textarea path="cnsltCn" cols="300" rows="20" cssClass="txaClass" title="상담내용"/></dd>
					</dl>
					<input name="managtCn" type="hidden" value="Testing..."/>
				</div>
				
				<div class="ui-grid-a uss-clear">	
					<div class="ui-block-a"><a href="javascript:fn_egov_save();" data-role="button" data-theme="b">등록</a></div>
					<div class="ui-block-b"><a href='#list' data-role="button" data-theme="b">목록</a></div>
				</div>						
			</div>
			</form:form>
			
			<!-- footer start -->
			<div data-role="footer" data-position="fixed">
				<h4>Copyright (c) MINISTRY OF SECURITY AND PUBLIC ADMINISTRATION.</h4>
			</div>
			<!-- footer end -->
				
			
								
		</div>
		
	</body>
</html>

